<?php

namespace pam\Factory;

/**
 * Description of HealthPolicyDataAccessFactory
 *
 * @author Robert Bwana
 */

use Zend\ServiceManager\FactoryInterface;
use pam\Mapper\HealthPolicyDataAccess;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Stdlib\Hydrator\ClassMethods;
use pam\Model\HealthPolicyStatement;
 
class HealthPolicyDataAccessFactory implements FactoryInterface{
    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new HealthPolicyDataAccess($serviceLocator->get('Zend\Db\Adapter\Adapter'),
                new ClassMethods(false),
                new HealthPolicyStatement()
                );
    }

}
